import request from '@/utils/request'

// 查询大分区配置列表
export function listBasicDfq(query) {
  return request({
    url: '/region/basicDfq/list',
    method: 'get',
    params: query
  })
}

// 查询大分区配置详细
export function getBasicDfq(ID) {
  return request({
    url: '/region/basicDfq/' + ID,
    method: 'get'
  })
}

// 查询大分区配置详细
export function getBasicDfqByAreaId(params) {
  return request({
    url: '/region/basicDfq/getBasicDfqByAreaId/',
    method: 'get',
    params: params,
  })
}

// 新增大分区配置
export function addBasicDfq(data) {
  return request({
    url: '/region/basicDfq',
    method: 'post',
    data: data
  })
}

// 修改大分区配置
export function updateBasicDfq(data) {
  return request({
    url: '/region/basicDfq',
    method: 'put',
    data: data
  })
}

// 删除大分区配置
export function delBasicDfq(ID) {
  return request({
    url: '/region/basicDfq/' + ID,
    method: 'delete'
  })
}
